<?php
namespace app\user\common;

class CacheRegionController{

    public static $output;

    public static $assign;

    public function _beginOb($data=[]){
        ob_start();
    }

    public function _output($contents){
        extract(self::$assign);
        include $contents;
       return ob_get_contents();
    }

    public function _clean(){
        ob_clean();
    }

    public function _endOb(){
        ob_end_clean();
    }

}